<?php

/**
 * Mascota filter form.
 *
 * @package    cronos-doctrine
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class MascotaFormFilter extends BaseMascotaFormFilter
{
  public function configure()
  {
       unset (
        $this['created_at'],
        $this['updated_at'],
        $this['usuario_id'],
        $this['foto'],
        $this['servicio_list'],
        $this['adopcion']

      );
       
       //Cambiar a lista y su validador de los required No o Si 0/1
      $this->widgetSchema['sexo'] = new sfWidgetFormChoice(array(
         'choices' => Mascota::$sexo,
         'expanded' => false,
         'multiple' => false,

      ));

      $this->validatorSchema['sexo'] = new sfValidatorChoice(array(
          'choices' => array_keys(Mascota::$sexo),

      ));
      
      $this->embedForm('raza', new RazaFormFilter());
      
  }
}
